package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class BrandUpdateReq implements Serializable {

    @ApiModelProperty(value = "id",required = true)
    @NotNull(message = "品牌id不可为空")
    private Long id;

    @ApiModelProperty(value = "品牌名称",required = true)
    @NotBlank(message = "品牌名称不可为空")
    @Pattern(regexp = "[\\u4e00-\\u9fa5a-zA-Z0-9-.]{0,10}+",message = "品牌不允许特殊字符长度最大为10")
    private String brandName;

}
